package com.code.day06;

public class Dome05Object2 {
    public static void main(String[] args) {
        Dome02 d = new Dome02();
        d.name="碎碎念";
        d.cardId="岁岁年年";
//        如果需要掉用自定义属性的话需要new一个出来,不能直接调用
        d.birthday =new MyDate();
        d.birthday.year=2003;
        d.birthday.month=6;
        d.birthday.day=9;

        System.out.println(d.name+" "+d.cardId+" "+d.birthday.year+" "+d.birthday.month+" "+d.birthday.day);
    }
}
